/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
zm.ready(function() {
    raiseSortEvent();

});


function raiseSortEvent() {
    /////home sort///

    zm(".view-header-new").bind("click", function() {
        zm(".view-header-new").unbindAll();
        ajaxSortNewHome(zm(this), "VIEW");
    });

    zm(".res-header-new").bind("click", function() {
        zm(".res-header-new").unbindAll();
        ajaxSortNewHome(zm(this), "RES");
    });

    zm(".view-header-hot").bind("click", function() {
        zm(".view-header-hot").unbindAll();
        ajaxSortHotHome(zm(this), "VIEW");
    });

    zm(".res-header-hot").bind("click", function() {
        zm(".res-header-hot").unbindAll();
        ajaxSortHotHome(zm(this), "RES");
    });
}